package com.weitu.majorHazard.activityRecord.service;

import com.weitu.majorHazard.activityRecord.entity.ActivityRecord;
import com.weitu.majorHazard.activityRecord.entity.ProblemAssociation;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/4/24.
 */
public interface ActivityRecordService {
    /**
     * 列表总数
     * @param map
     * @return
     */
    int queryCount(Map<String,Object> map);

    /**
     * 查询列表
     * @param map
     * @return
     */
    List<ActivityRecord> queryList(Map<String,Object> map);
    /**
     * 插入活动记录
     * @param activityRecord
     * @return
     */
    boolean insertActivityRecord(ActivityRecord activityRecord);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    ActivityRecord queryById(String id);
    /**
     * 插入问题
     * @param problemAssociation
     * @return
     */
    boolean insertProblemAssociation(ProblemAssociation problemAssociation);
    /**
     * 查询问题列表
     * @param activityRecordId
     * @return
     */
    List<ProblemAssociation> queryProblemAssociation(String activityRecordId);
    /**
     * 删除问题
     * @param id
     * @return
     */
    int deleteProblemAssociation(String id);
    /**
     * 根据ID查询问题详情
     * @param id
     * @return
     */
    ProblemAssociation queryProblemAssociationById(String id);
    /**
     * 修改问题
     * @param problemAssociation
     * @return
     */
    boolean updateProblemAssociation(ProblemAssociation problemAssociation);
    /**
     * 修改活动记录
     * @param activityRecord
     * @return
     */
    boolean updateActivityRecord(ActivityRecord activityRecord);
}
